<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>Thymeleaf</title>
</head>
<body>
<!--**th:each：**遍历循环元素-->
<table border="1" cellspacing="0" cellpadding="15">
    <tr>
        <th>序号</th>
        <th>用户ID</th>
        <th>用户姓名</th>
        <th>用户密码</th>
        <th>用户地址</th>
    </tr>
    <tr th:each="user, index : ${users}">
        <td th:text="${index.count}"></td>
        <td th:text="${user.id}"></td>
        <td th:text="${user.uname}"></td>
        <td th:text="${user.pwd}"></td>
        <td th:text="${user.address}"></td>
    </tr>
</table>
</body>
</html>